#ifndef __GCODE_CONTROL_H
#define __GCODE_CONTROL_H

#include <stdint.h>
#include <stdbool.h>

extern double minX, maxX, minY, maxY, minZ, maxZ; // ???????
extern uint32_t commonTimeIdeal;
extern uint32_t commonTimeReal;

extern bool isGcodeStop;

uint8_t mc_line(
    double x, double y, double z,
    double extruder_length,
    double moveLength,
    double feed_rate
);

void mc_dwell(int pause);
void mc_end(void);
void mc_arc(double* position, double* target, double* offset, double feed_rate, double radius, uint8_t isclockwise);


#endif
